{$IFDEF VER230}
	{$DEFINE COMPILERXE2_UP}
	{$DEFINE COMPILER12_UP}
  {$DEFINE COMPILER10_UP}
	{$DEFINE COMPILER7_UP}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF VER220}
	{$DEFINE COMPILER12_UP}
  {$DEFINE COMPILER10_UP}
	{$DEFINE COMPILER7_UP}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF VER210}
	{$DEFINE COMPILER12_UP}
  {$DEFINE COMPILER10_UP}
	{$DEFINE COMPILER7_UP}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF VER200}
	{$DEFINE COMPILER12_UP}
  {$DEFINE COMPILER10_UP}
	{$DEFINE COMPILER7_UP}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF VER190}
  {$DEFINE COMPILER10_UP}
	{$DEFINE COMPILER7_UP}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF VER185}
  {$DEFINE COMPILER10_UP}
	{$DEFINE COMPILER7_UP}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF VER180}
  {$DEFINE COMPILER10_UP}
	{$DEFINE COMPILER7_UP}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}
{$IFDEF VER170}
	{$DEFINE COMPILER7_UP}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF VER160}
	{$DEFINE COMPILER7_UP}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF VER150}
	{$DEFINE COMPILER7_UP}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF VER140}
	{$DEFINE COMPILER6}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF VER130}
	{$DEFINE COMPILER5}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFNDEF MSWINDOWS}
	{$IFDEF WIN32}
		{$DEFINE MSWINDOWS}
	{$ENDIF}
{$ENDIF}

{$IFDEF COMPILER6}
	{$DEFINE COMPILER6_UP}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF COMPILER5}
	{$DEFINE COMPILER5_UP}
{$ENDIF}

{$IFDEF COMPILER6_UP}
  {$DEFINE LIBS_6UP}
{$ENDIF}

{$IFDEF COMPILER7_UP}
  {$DEFINE COMPILER_INLINE}
{$ENDIF}

{$IFDEF COMPILER10_UP}
  {$DEFINE COMPILER2006_UP}
{$ENDIF}

{$IFDEF COMPILER12_UP}
  {$DEFINE COMPILER_GENERICS}
  {$DEFINE COMPILER_UNICODE}
  {$DEFINE COMPILER2009_UP}
{$ENDIF}

{$IFDEF FPC}
  {$IFNDEF CPUARM}
    {$ASMMODE intel}
  {$ENDIF}
  {$MODE delphi}
  {$DEFINE COMPILER_INLINE}
  {$DEFINE LIBS_6UP}
{$ENDIF}

{$IFDEF COMPILER_INLINE}
{$INLINE ON}
{$ENDIF}
